import Shaqe.*;

/**
 * @Author liangzai
 * @Description:
 */
public class Test {
    public static void func(Shaqe shaqe){
        shaqe.draw();
    }

    public static void main(String[] args) {
        Circle circle = new Circle();
        Rect rect = new Rect();
        Flower flower = new Flower();
        Tirangel tirangel = new Tirangel();

        Shaqe[] shaqes={circle,flower,tirangel,rect};

        for(Shaqe s: shaqes){
            func(s);
        }
    }
}
